package com.lzl.test;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Math {
    public static final int initData = 666;
    public static User1 user = new User1();

    public int compute() { //一个方法对应一块栈帧内存区域
        int a = 1;
        int b = 2;
        int c = (a + b) * 10;
        return c;
    }

    public static void main(String[] args) {
//        Math math = new Math();
//        math.compute();
        int i=0;
        try {
            SecretUtils.a(i);
            SecretUtils.b(i);
            System.out.println("aaaaaa");
        }catch (Exception e){
            if (e instanceof Aecxeption){
            System.out.println("a调用方法出错了");
            }else if (e instanceof Bexception){
                System.out.println("b调用方法出错了");
            }
        }finally {
            System.out.println("用户输入："+i);
        }
        String text = null;
        InputStream is=null;
        try {
             is =  new FileInputStream("");
            HSSFWorkbook excel=new HSSFWorkbook(is);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }finally {
            try {
                is.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
